package com.qf06;

public class AddMoney implements Runnable{

    private BankCard card;
    public AddMoney(BankCard card) {
        this.card = card;
    }

    @Override
    public void run() {
        for (int i = 0; i < 5; i++) {
            card.save(1000);
        }
    }
}
